package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 培训导师信息对象 TRAINING_BASE_MENTOR
 *
 * @author dp
 * @date 2023-11-27
 */
@Data
public class TrainingBaseMentorAll extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 培训导师id
     */
    private String mentorId;

    /**
     * 培训导师编码
     */
    private String mentorCode;

    /**
     * 培训导师名称
     */
    @Excel(name = "导师名称")
    private String mentorName;

    /**
     * 性别
     */
    private String genderId;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private String genderName;

    /**
     * 身份证号
     */
    @Excel(name = "身份证号")
    private String idcardNo;

    /**
     * 出生日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /**
     * 职称
     */
    private String jobtitleId;

    /**
     * 职称名称
     */
    @Excel(name = "职称")
    private String jobtitleName;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String telephone;

    /**
     * 导师分类
     */
    private String mentorClassifyId;

    /**
     * 导师分类名称
     */
    @Excel(name = "导师分类")
    private String mentorClassifyName;

    /**
     * 工作年限
     */
    @Excel(name = "从事中医临床工作年限")
    private Long workingSeniority;

    /**
     * 所属科室id
     */
    private String deptId;

    /**
     * 导师简介
     */
    @Excel(name = "导师简介")
    private String mentorProfile;

    /**
     * 是否有效
     */
    private String isValid;

    /**
     * 创建人
     */
    private String modifyBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /**
     * 培训基地ID
     */
    @Excel(name = "培训基地ID")
    private String baseId;

    /**
     * 培训基地名称
     */
    @Excel(name = "培训基地名称")
    private String baseName;

    /**
     * 科室名称
     */
    @Excel(name = "科室名称")
    private String deptName;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private Long isDelete;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("mentorId", getMentorId())
                .append("mentorCode", getMentorCode())
                .append("mentorName", getMentorName())
                .append("genderId", getGenderId())
                .append("idcardNo", getIdcardNo())
                .append("birthDate", getBirthDate())
                .append("jobtitleId", getJobtitleId())
                .append("telephone", getTelephone())
                .append("mentorClassifyId", getMentorClassifyId())
                .append("workingSeniority", getWorkingSeniority())
                .append("deptId", getDeptId())
                .append("mentorProfile", getMentorProfile())
                .append("isValid", getIsValid())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("modifyBy", getModifyBy())
                .append("modifyTime", getModifyTime())
                .append("baseId", getBaseId())
                .append("baseName", getBaseName())
                .append("deptName", getDeptName())
                .toString();
    }
}
